/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity.subtitle;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 字幕资源管理Entity
 * @author ZC
 * @version 2017-04-22
 */

@XmlType(name="sub") 
public class EleSourceSubtitle extends DataEntity<EleSourceSubtitle> {
	
	private static final long serialVersionUID = 1L;
	private EleSourceSubtitleGroup group;		// group_id 父类
	private String name;		// 字幕的名字
	private String text;		// 字幕的内容
	private String correspondingFloor;		// 对应的楼层
	private String remarks;		// 排序

	public EleSourceSubtitle() {
		super();
	}

	public EleSourceSubtitle(String id){
		super(id);
	}

	public EleSourceSubtitle(EleSourceSubtitleGroup group){
		this.group = group;
	}
	@JsonIgnore
	@XmlTransient
	@Length(min=0, max=11, message="group_id长度必须介于 0 和 11 之间")
	public EleSourceSubtitleGroup getGroup() {
		return group;
	}

	public void setGroup(EleSourceSubtitleGroup group) {
		this.group = group;
	}
	
	@XmlElement(name = "name")  
	@Length(min=0, max=255, message="字幕的名字长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@XmlElement(name = "content")  
	@Length(min=0, max=255, message="字幕的内容长度必须介于 0 和 255 之间")
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	@XmlElement(name = "corresponding_floor")  
	@Length(min=0, max=255, message="对应的楼层长度必须介于 0 和 255 之间")
	public String getCorrespondingFloor() {
		return correspondingFloor;
	}

	public void setCorrespondingFloor(String correspondingFloor) {
		this.correspondingFloor = correspondingFloor;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
}